import Vue from 'vue'

import Vuex from 'vuex'

import moduleUser from './modules/user.js'
import moduleMessage from './modules/message.js'
import moduleClock from './modules/clock.js'
import modulePermission from './modules/permission.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  // 挂载store模块
  modules: {
    m_user: moduleUser,
    m_mess: moduleMessage,
    m_clock: moduleClock,
    permission: modulePermission
  },
})

export default store